import request from '@/utils/request'

// 地图点位列表
export function appLocPage(data) {
  return request({
    url: '/location/appLocPage',
    method: 'post',
    data: data
  })
}
// 查询点位列表
export function listLocation(data) {
  return request({
    url: '/location/list',
    method: 'post',
    data: data
  })
}
// 地图点位列表
export function getLocationListByType(data) {
  return request({
    url: '/location/getByType',
    method: 'get',
    data: data
  })
}
//  地图点位详情
export function getLocationDetails(id) {
  return request({
    url: '/location/getById?id='+id,
    method: 'get'
  })
}
//  点位类型列表
export function getTypeList(data) {
  return request({
    url: '/locationType/tree',
    method: 'post',
    data: data
  })
}
//  旅游路线列表
export function getTravelRouteList(data) {
  return request({
    url: '/travelRoute/page',
    method: 'post',
    data: data
  })
}
//旅游路线详情
export function getTravelRouteDetail(id) {
  return request({
    url: '/travelRoute/getById?id='+id,
    method: 'get'
  })
}
//“趣”列表
export function getInterestList(data) {
  return request({
    url: '/interestingManage/list',
    method: 'post',
    data: data
  })
}
//“趣”详情
export function getInterestDetail(id) {
  return request({
    url: '/location/getLocationsByInterestingManageId?interestingManageId='+id,
    method: 'get'
  })
}
